<?php
	//使用GD库画图
	//创建一个画布
	//$huabu = imagecreate(400,400);
	//创建一个真色彩画布
	$huabu = imagecreatetruecolor(400,400);
	//需要一支笔
	//设置一个颜色
	$red = imagecolorallocate($huabu,255,0,0);
	$white = imagecolorallocate($huabu,255,255,255);
	
	imagefill($huabu,1,1,$white);
	
	//画一个椭圆(正圆)
	imageellipse($huabu,200,200,200,200,$red);
	
	//画一个弧
	imagearc($huabu,150,150,100,100,-100,30,$red);
	//填充的弧
	imagefilledarc($huabu,150,150,100,100,0,90,$red,IMG_ARC_PIE);
	
	header("content-type:image/png");
	imagepng ($huabu);
	imagedestroy($huabu);